package com.zzz.friend.controller.blog;

import com.zzz.common.core.controller.BaseController;
import com.zzz.common.core.domain.TableDataInfo;
import com.zzz.friend.domain.blog.dto.BlogQueryDTO;
import com.zzz.friend.service.blog.BlogService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.friend.controller.blog
 * @Author: zhai
 * @CreateTime: 2025-11-01  14:28
 * @Description: TODO
 * @Version: 1.0
 */
@Tag(name = "博客端")
@RequestMapping("/blog")
@RestController
public class BlogController extends BaseController {

    @Autowired
    private BlogService blogService;

    @GetMapping("/list")
    public TableDataInfo list(BlogQueryDTO blogQueryDTO) {
        return getDataTable(blogService.list(blogQueryDTO));
    }
}
